package com.lz.string;

import java.net.Socket;

public class app {
    public static void main(String[] args) {
        String si="https://www.aliyun.com/jiaocheng/795686.html";
        int i1 = si.lastIndexOf("/");
        System.out.println(i1);
        String substring = si.substring(i1+1);
        System.out.println(substring);
    }
}
